import request from'../utils/HTTP.js';

const API_URL = '/events';

export const getEventsApi = () => {
    return request({
        url: API_URL,
        method: 'GET',
    });
};

export const getEventDetailApi = (id) => {
    return request( {
        url: `API_URL/${id}`,
        method: 'GET',
    });
};